package com.blog.service;

import com.blog.entity.User;

public interface UserService {
    User findByUsername(String username);

    boolean existsByUsername(String username);

    String addUser(User user);

    boolean validatePassword(String username, String password);

    String getUserRole(String username);

    User createUser(String username, String password, boolean isAdmin);


    boolean isAdmin(User user);
}